package com.colin.app.activity.view.radar;

import com.colin.app.R;
import com.colin.app.activity.view.ViewContract;
import com.colin.app.activity.view.ViewPresenterImpl;
import com.colin.app.app.AppActivity;
import com.colin.app.bean.DemoBean;

public class RadarViewActivity extends AppActivity implements ViewContract.ViewView{
    private ViewContract.ViewPresenter mViewPresenter = null;
    @Override
    protected void onDestroy() {
        if (null!=mViewPresenter){
            mViewPresenter.destroy();
            mViewPresenter = null;
        }
        super.onDestroy();
    }

    @Override
    public void initPresenter() {
        DemoBean demoBean = getIntent().getExtras().getParcelable("clazz");
        mViewPresenter = new ViewPresenterImpl(this, this, demoBean);
    }

    @Override
    public int initViewLayoutID() {
        return R.layout.activity_radar_view;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {
        mViewPresenter.setData();
    }

}
